import pygame

class Play():
	def __init__(self,win,s):
		self.win = win
		self.image = pygame.image.load('play.png')
		self.rect = self.image.get_rect()
		self.rect.bottom = s.win[1]/2 - 20
		self.rect.centerx = s.win[0]/2

	def update(self):
		self.win.blit(self.image,self.rect)

class GameOver():
	def __init__(self,win,s):
		self.win = win
		self.image = pygame.image.load('game_over.png')
		self.rect = self.image.get_rect()
		self.rect.centery = s.win[1]/2
		self.rect.centerx = s.win[0]/2

	def update(self):
		self.win.blit(self.image,self.rect)

class RankingList():
	def  __init__(self,win,s):
		self.win = win
		self.image = pygame.image.load('ranking_list.png')
		self.rect = self.image.get_rect()
		self.rect.top = s.win[1]/2 + 20
		self.rect.centerx = s.win[0]/2

	def update(self):
		self.win.blit(self.image,self.rect)

class PlayAgain():
	def __init__(self,win,s):
		self.win = win
		self.image = pygame.image.load('play_again.png')
		self.rect = self.image.get_rect()
		self.rect.centery = 400
		self.rect.centerx = s.win[0]/2

	def update(self):
		self.win.blit(self.image,self.rect)

class Back():
	def __init__(self,win,s):
		self.win = win
		self.image = pygame.image.load('back.png')
		self.rect = self.image.get_rect()
		self.rect.centerx = s.win[0]/2
		self.rect.centery = 100

	def update(self):
		self.win.blit(self.image,self.rect)